package com.qf.sys.service.impl;

import com.github.pagehelper.PageInfo;
import com.qf.sys.dao.LogDao;
import com.qf.sys.po.Log;
import com.qf.sys.service.LogService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * @创建人 sunsir Email:sunsir163@163.com
 * @创建时间 2022/5/8
 * @描述
 */
@Service
public class LogServiceImpl implements LogService {
    @Resource
    LogDao logDao;
    @Override
    public boolean addLog(Log log) {
        return logDao.addLog(log)>0;
    }

    @Override
    public PageInfo<Log> getLogList(Map params) {
        List<Log> logList = logDao.getLogList(params);
        PageInfo<Log> pageInfo = new PageInfo<Log>(logList);
        return pageInfo;
    }
}
